<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta name="keywords" content="甜爱，SweetLove,甜品，甜点，生日蛋糕，冰淇淋，冰品"/>
<meta name="description" content="甜爱网上商城是专注于甜品销售、进口的网站，各种甜品、甜点齐全，还有解暑的各种冰品任顾客挑选，让他们感受到爱的温馨。">
<meta charset="utf-8">
<title>结算</title>
<link rel="stylesheet" href="/fore/css/shoppingCar.css" >
<link rel="stylesheet" href="/fore/css/reset.css" >
<link rel="stylesheet" href="/fore/css/buy.css" >
<link rel="stylesheet" href="/fore/css/toastr/toastr.min.css" >
<script src="/fore/js/jquery-v1.10.2.min.js" type="text/javascript"></script>
</head>

<body>
<!--页头-->
<div id="headCon">
    <div th:replace="fore/include/toper::top"></div>
    <ul>
        <a href="/fore/index" ><li></li></a>
        <p>我的购物车</p>
    </ul>
</div>
<!--内容-->
<div id="contentCon">
	<ul>
    	<li>
        	<p>我的商品</p>
            <span></span>
        </li>
    </ul>
    <section class="cartMain">
        <div class="cartMain_hd">
            <ul class="order_lists cartTop">
                <li class="list_con">商品信息</li>
                <li class="list_info">商品参数</li>
                <li class="list_price">单价（元）</li>
                <li class="list_amount">数量</li>
                <li class="list_sum">小计（元）</li>
            </ul>
        </div>

        <div class="cartBox">
            <div class="shop_info">
            </div>
            <div class="order_content">
                <ul class="order_lists"  >
                    <li class="list_con">
                        <div class="list_img"><a href="javascript:;"><img th:src="${product.picture}"  alt="" src=""></a></div>
                        <div class="list_text"><a href="javascript:;" th:text="${product.name}"></a></div>
                    </li>
                    <li class="list_price">
                        <p class="price" th:text="'规&nbsp;&nbsp;&nbsp;&nbsp;格： ' + ${spec.name}"></p>
                    </li>
                    <li class="list_price">
                        <p class="price" th:text="'￥： ' + ${spec.price / 100}"></p>
                    </li>
                    <li class="list_price">
                        <p class="price" th:text="${number}"></p>
                    </li>
                    <li class="list_sum">
                        <p class="sum_price" th:text="${spec.price / 100 * number}"></p>
                    </li>
                </ul>

                <div class="address">
                    <div class="title">收货地址</div>
                    <div th:if="${address}" th:each="a:${address}" class="info" th:address-id="${a.id}">
                        <div th:text="${a.contact} + ' ' + ${a.mobile}"></div>
                        <div th:text="'地址：' + ${a.province} + ${a.city} + ${a.county} + ${a.address}"></div>
                    </div>

                    <div th:if="${#lists.isEmpty(address)}"  class="addForm" >
                        <div><input type="text" name="contact"  value="" required></div>
                        <div><input type="text" name="mobile"  required></div>
                        <div>
                            <select class="province" required>
                                <option value="">请选择</option>
                                <option th:each="province : ${provinces}" th:value="${province.id}" th:text="${province.name}"></option>
                            </select>
                            <select class="city" required>
                                <option value="">请选择</option>
                            </select>
                            <select class="county" required>
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <div><input type="text" name="address"  required></div>
                    </div>
                </div>

            </div>
        </div>
        <input type="hidden" class="productId" th:value="${product.id}" readonly >
        <input type="hidden" class="specId" th:value="${spec.id}" readonly >
        <input type="hidden" class="number" th:value="${number}" readonly >
        <div class="bar-wrapper">
            <div class="bar-right">
                <div class="totalMoney">共计: <strong class="total_text" th:text="${spec.price / 100 * number}"></strong></div>
                <div class="calBtn"><a class="btn_sty placeOrderByNow">结算</a></div>
            </div>
        </div>
    </section>

</div>

<!--页脚-->
<div th:replace="fore/include/footer::foot"></div>
<script src="/fore/js/area.js" type="text/javascript"></script>
<script>
    $(".info").click(function(){
        $(this).siblings().removeClass("checked");
        $(this).addClass("checked");
    })
</script>
</body>
</html>
